/*************************************************************************
 *
 *  elksip - a multi-platform Sip Phone Server
 *
 *  file: random_test.c
 *
 *  Copyright 2011-2014 Elksip team.
 *
 ************************************************************************/
#include <stdlib.h>
#include <stdio.h>
#include "elk_random.h"
#include "elk_str.h"


int random_test()
{
    char *str = elk_generate_random_str(10);
    printf("str=%s\n", str);
    str = elk_generate_random_str(100);
    printf("str=%s\n", str);
    str = elk_generate_random_str(10);
    printf("str=%s\n", str);
    
    return 0;
}
int str_test()
{
    Elk_string str;
    elk_str_init(&str);
    elk_strn_append (&str, "ABC", 3);
    printf("str=%s\n", str.str);
    elk_str_free(&str);
    return 0;
}
int main(int argc, char* argv[])
{

    random_test();
    str_test();
    return 0;
}
